home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
hugstr
/
hugeeras.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-01
|
559b
|
27 lines
#define NOCOMM
#include <windows.h>
#include "hugearr.h"
/* Erase a previously-dimensioned huge array. */
/* VBM: Declare Function VBHugeErase% Lib "hugearr.dll" Alias "VBHugeErase" (ByVal hArray%) */
int FAR PASCAL
VBHugeErase(int hArray)
{
PHUGEDESC pArray; /* pointer to array descriptor */
DecCheckHandle(hArray);
pArray = (PHUGEDESC) LocalLock(hLocalMem) + hArray;
CheckNotAllocYet(pArray);
/* free the memory */
GlobalFree(pArray -> handle);
pArray -> handle = NULL;
LocalUnlock(hLocalMem);
return HA_OK;
}